package com.gqz.equip.vo;

import com.alibaba.fastjson2.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.media.SchemaProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;


@Data
@AllArgsConstructor
@NoArgsConstructor
@Schema(name = "TEnStockEquipVo")
public class TEnStockEquipVo {

    @SchemaProperty(name = "设备编码")
    private String sbbm;

    @SchemaProperty(name = "设备名称")
    private String sbmc;

    @SchemaProperty(name = "运行状态")
    private String yxztmc;

    @SchemaProperty(name = "设备类型")
    private String sblxbm;

    @SchemaProperty(name = "设备类型名称")
    private String sblxmc;

    @SchemaProperty(name = "计量方式")
    private String jlfsmc;

    @SchemaProperty(name = "规格")
    private String sbgg;

    @SchemaProperty(name = "型号")
    private String xh;

    @SchemaProperty(name = "单位")
    private String gldwmc;

    @SchemaProperty(name = "出厂编号")
    private String ccbm;

    @SchemaProperty(name = "出场日期")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JSONField(name = "ccTime", format = "yyyy-MM-dd HH:mm:ss")
    private Date ccrq;

    @SchemaProperty(name = "库存数")
    private Integer kcs;

    @SchemaProperty(name = "实际数")
    private Integer sjs;

    @SchemaProperty(name = "设备详情")
    private String sbxq;

    @SchemaProperty(name = "所属库房编码")
    private String sskfbm;
}
